﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using btnet;
using System.Data;

public partial class CustomControls_inc_bugs : System.Web.UI.UserControl
{
    protected string sql;
    protected Security security;
    DataView dv = null;
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public void display_bugs(bool show_checkboxes)
    {
        DataSet ds_custom_cols = btnet.Util.get_custom_columns();
        btnet.BugList.display_bugs(
            show_checkboxes,
            dv,
            Response,
            security,
            new_page.Value,
            IsPostBack,
            ds_custom_cols,
            filter.Value);
    }

    public void call_sort_and_filter_buglist_dataview()
    {
        string filter_val = filter.Value;
        string sort_val = sort.Value;
        string prev_sort_val = prev_sort.Value;
        string prev_dir_val = prev_dir.Value;


        btnet.BugList.sort_and_filter_buglist_dataview(dv, IsPostBack,
            actn.Value,
            ref filter_val,
            ref sort_val,
            ref prev_sort_val,
            ref prev_dir_val);

        filter.Value = filter_val;
        sort.Value = sort_val;
        prev_sort.Value = prev_sort_val;
        prev_dir.Value = prev_dir_val;

    }
}